package com.tianlh.service.design_pattern.Chain_of_Responsibility;

/**
 * Created by wb-tianlihui on 2017/11/15.
 */
public abstract class Handler {

    /**
     * 持有后继的责任对象
     */
    private Handler handler;
    /**
     * 定义所有处理者的操作规范
     */
    abstract void operator(Client client);
    /**
     * 获取后继的责任对象
     */
    public Handler getHandler() {
        return handler;
    }
    /**
     * 设置后继的责任对象
     */
    public void setHandler(Handler handler) {
        this.handler = handler;
    }
}